/**
 * Project Name:gc_sms_mvn
 * File Name:IAccountService.java
 * Package Name:com.clps.dev.sms.service
 * Date:2018年11月15日下午4:10:44
 * Copyright (c) 2018, jackie.duan@clpsglobal.com All Rights Reserved.
 *
 */
package com.clps.dev.sms.service.sm;


import com.clps.dev.sms.common.result.ResponseResult;
import com.clps.dev.sms.common.service.IBaseService;
import com.clps.dev.sms.entity.sm.Account;




/**
 * 
 * ClassName: IAccountService 
 * @date 2018-11-28 14:25:53 
 *
 * @author jackie.duan
 * @version V1.0
 * @since JDK 1.8
 */
public interface IAccountService extends IBaseService<Account>{
	
	/**
	 * 
	 * isExistAccount
	 * @Description:判断账户名是否已经存在
	 * @param accountName
	 * @return ResponseResult 判断结果
	 */
	ResponseResult<Account> isExistAccount(String accountName);

	/**
	 * 
	 * queryAccountById
	 * @Description:根据id查询账户信息
	 * @param id
	 * @return:ResponseResult 查询结果
	 */
	ResponseResult<Account> queryAccount(Integer id);
	
	/**
	 * 
	 * queryAccountByName
	 * @Description:根据账户名查询账户信息
	 * @param accountName
	 * @return ResponseResult 查询结果
	 */
	ResponseResult<Account> queryAccount(String accountName);
	/**
	 * 
	 * editAccount
	 * @Description:更新账户
	 * @param account
	 * @return ResponseResult 更新结果
	 */
	ResponseResult<Account> editAccount(Account account);
	/**
	 * 
	 * queryAllAccounts
	 * @Description:查询所有账户
	 * @param 
	 * @return ResponseResult 查询结果
	 */
	ResponseResult<Account> queryAllAccounts();
	
	
}
